Skip to content

fix: resolve multiple bugs#554

Open
laraba9987-cmyk wants to merge 2 commits into
MettaChain:mainfrom
laraba9987-cmyk:fix/bug-fixes-bundle
Open

fix: resolve multiple bugs#554
laraba9987-cmyk wants to merge 2 commits into
MettaChain:mainfrom
laraba9987-cmyk:fix/bug-fixes-bundle

Conversation

@laraba9987-cmyk

@laraba9987-cmyk laraba9987-cmyk commented Jun 27, 2026

Copy link
Copy Markdown

Closes #421,
Closes #423,
Closes #425,
Closes #426

#421 - Remove hardcoded webhook fallback secret

Removed the insecure fallback string literal in src/app/api/revalidate/route.ts. Now throws a clear error if REVALIDATE_WEBHOOK_SECRET is unset. Updated .env.example.

#423 - Fix duplicate transaction tables

Removed duplicate table block in src/components/TransactionHistory.tsx. Pagination now points to the single canonical table.

#425 - Add error logging to silent catch blocks

Added logger.warn/logger.error calls to empty catch blocks in blockchainSecurity.ts, phishingProtection.ts, walletHelpers.ts, useSearchHistory.ts, useCurrencyConverter.ts, ViewToggle.tsx.

#426 - Fix unclear setTimeout calls

Created src/hooks/useSafeTimeout.ts hook. Replaced bare setTimeout calls in 10 components to auto-cleanup on unmount.

- Remove hardcoded webhook fallback secret (MettaChain#421)
- Fix duplicate transaction tables in TransactionHistory (MettaChain#423)
- Add proper error logging to silent catch blocks (MettaChain#425)
- Create useSafeTimeout hook and fix uncleared timeouts (MettaChain#426)

Closes MettaChain#421, MettaChain#423, MettaChain#425, MettaChain#426
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@laraba9987-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

Conflicts with #543 on src/app/api/revalidate/route.ts. I am merging #543 first — feel free to rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants